package com.mls.fivedistrict.server;

import  com.mls.fivedistrict.pojo.News;
import com.baomidou.mybatisplus.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 新闻 服务类
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface NewsService extends IService<News> {
    @Override
    boolean insert(News news);

    @Override
    boolean updateById(News news);

    boolean addReadCount(Long id);
    boolean addLikeCount(Long id);
    boolean addShareTimes(Long id);
    boolean addCommentTimes(Long id);
    boolean cutReadCount(Long id);
    boolean cutLikeCount(Long id);
    boolean cutShareTimes(Long id);
    boolean cutCommentTimes(Long id);

    News selectDetail(Long id);

    int modifyReward();
}
